package com.cqvie.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class Teacher {
	private int teacherID;// 教师ID
	private String teacherName;// 教师姓名
	private String password; // 密码
	private byte isTeachMaster;// 是否是班主任

	private CourseSchedule CS;

	@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
	public CourseSchedule getCS() {
		return CS;
	}

	public String getPassword() {
		return password;
	}

	@Id
	public int getTeacherID() {
		return teacherID;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setCS(CourseSchedule cS) {
		CS = cS;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setTeacherID(int teacherID) {
		this.teacherID = teacherID;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public byte getIsTeachMaster() {
		return isTeachMaster;
	}

	public void setIsTeachMaster(byte isTeachMaster) {
		this.isTeachMaster = isTeachMaster;
	}

}
